package org.example.forum.dao;

import org.example.forum.model.Board;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

public interface BoardMapper {
    int insert(Board row);

    int insertSelective(Board row);

    Board selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Board row);

    int updateByPrimaryKey(Board row);

    List<Board> selectByNum(@RequestParam("num") Integer num);
}

